﻿@{
    ViewBag.Title = "电解车间生产经济技术指标计划";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section scripts{
        <script src="~/Areas/Pacm/ViewModels/Pacm.Jsbzjh.js"></script>
        <script type="text/javascript">
            var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
            ko.bindingViewModel(new viewModel(data));
        </script>
}
        <div class="z-toolbar">
            <a id="a_refresh" href="#" plain="true" class="easyui-linkbutton" icon="icon-arrow_refresh" title="刷新" data-bind="click:refreshClick">刷新</a>
            <a id="a_add"    href="#" plain="true" class="easyui-linkbutton" icon="icon-add" title="新增" data-bind="click:addClick">新增</a>
            <a id="a_edit"   href="#" plain="true" class="easyui-linkbutton" icon="icon-edit" data-bind="click:editClick" title="编辑">编辑</a>
            <a id="a_del"    href="#" plain="true" class="easyui-linkbutton" icon="icon-cross" title="删除" data-bind="click:deleteClick">删除</a>
            <a id="a_audit"  href="#" plain="true" class="easyui-linkbutton" icon="icon-user-accept" data-bind="click:auditClick" title="审核">审核</a>
        </div>
        <div id="condition" class="container_12" style="position:relative;">
            <div class="grid_1 lbl">计划年份</div>
            <div class="grid_2 val"><input type="text" data-bind="datasource:dataSource.yearsItems ,comboboxValue:form.Jsbzjh_Year" class="z-txt easyui-combobox" data-options="showblank:true"/></div>
            <div class="grid_1 lbl">计划月份</div>
            <div class="grid_2 val"><input type="text" data-bind="datasource:dataSource.monthItems ,comboboxValue:form.Jsbzjh_Month" class="z-txt easyui-combobox" data-options="showblank:true"/></div>

            <div class="clear"></div>
            <div class="grid_1 lbl">录入日期</div>
            <div class="grid_2 val"><input type="text" data-bind="value:form.CreateDate" class="z-txt easyui-daterange"/></div>
            <div class="clear"></div>
            <div class="prefix_9" style="position:absolute;top:5px;height:0;">  
                <a id="a_search" href="#" class="button button-blue" style="margin:0 15px;" data-bind="click:searchClick">查询</a> 
                <a id="a_reset" href="#" class="button button-blue" data-bind="click:clearClick">清空</a>
            </div>
        </div>
  
        <table id="gridlist" data-bind="datagrid:grid">
             <thead>  
                    <tr>  
                        <th field="Jsbzjh_BillNo"   rowspan="2"     sortable="true" align="left"    width="90"  >流水号</th>  
                        <th field="Jsbzjh_Year"     rowspan="2"     sortable="true" align="left"    width="60"  >计划年度</th>  
                        <th field="Jsbzjh_Month"    rowspan="2"     sortable="true" align="left"    width="60"  >计划月份</th> 
                         <th field="Jsbzjh_Dwmc"    rowspan="2"     sortable="true" align="left"    width="70"  >部门名称</th>   
                        <th field="Jsbzjh_Zcq_Czy"  rowspan="2"     sortable="true" align="left"    width="70"  >正常期槽昼夜</th>  
                        <th field="Jsbzjh_Qdh_Czy"  rowspan="2"     sortable="true" align="left"    width="70"  >启动后期槽昼夜</th>  
                        <th field="Jsbzjh_Zcq_Ccl"  rowspan="2"     sortable="true" align="left"    width="70"  >正常槽产量</th>  
                        <th field="Jsbzjh_Qdh_Ccl"  rowspan="2"     sortable="true" align="left"    width="70"  >启动后期槽产量</th>  
                        <th field="Jsbzjh_Pjdy"     rowspan="2"     sortable="true" align="left"    width="70"  >平均电压</th>  
                        <th field="Jsbzjh_Pjdlxl"   rowspan="2"     sortable="true" align="left"    width="70"  >平均电流效率</th>  
                        <th colspan="6">单耗</th>
                        <th field="CreateDate"      rowspan="2"     sortable="true" align="left" formatter="com.formatDate"    width="70" >创建日期</th> 
                        <th field="Jsbzjh_Remark"   rowspan="2"     sortable="true" align="left"    width="100" >备注</th> 
                    </tr>
                    <tr>
                        <th field="Jsbzjh_Dh_Yhl"          sortable="true" align="left"    width="70"  >氧化铝</th>  
                        <th field="Jsbzjh_Dh_Yjmh"         sortable="true" align="right"    width="70"  >阳极毛耗</th> 
                        <th field="Jsbzjh_Dh_Fhy"           sortable="true" align="right"    width="70" >氟化盐 </th>  
                        <th field="Jsbzjh_Dh_Zldh"          sortable="true" align="center"  width="70"  >直流电耗</th>  
                        <th field="Jsbzjh_Dh_LyJlddh"       sortable="true" align="left"    width="70" >铝液交流电单耗</th>   
                        <th field="Jsbzjh_Dh_LcbzhJlddh"    sortable="true" align="left"    width="70" >铝产品综合交流电单耗</th>  
                    </tr>
                   
            </thead>      
        </table> 
 